import services.Knight;
import services.Quest;
import services.impl.BraveKnight;
import services.impl.SlayDragonTest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KnightConfig {

    @Bean
    public Knight knight() {
        return new BraveKnight(quest());
    }

    @Bean
    public Quest quest() {
        return new SlayDragonTest(System.out);
    }
}
